package com.common.service;

import java.util.List;

import javax.annotation.Resource;

import com.common.dao.PermissionMapper;
import com.common.entity.Permission;

/**
 * <p>User: Zhang Kaitao
 * <p>Date: 14-1-28
 * <p>Version: 1.0
 */
public class PermissionServiceImpl implements PermissionService {
    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public int createPermission(Permission permission){
        return permissionMapper.insertPermission(permission);
    }

	@Override
	public int deletePermission(Permission permission) {
		return permissionMapper.deletePermission(permission);
	}

	@Override
	public List<Permission> getAllPermissions() {
		return permissionMapper.getAllPermissions();
	}

}
